package com.yuanfeng.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuanfeng.activity.dto.ReductionPolicyBaseAddDTO;
import com.yuanfeng.activity.entity.ActivityReductionPolicyGoodsEntity;
import com.yuanfeng.activity.vo.ReductionPolicyGoodsDetailQueryVO;
import com.yuanfeng.commoms.vo.goods.GdsDetailsCommonQueryResultVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Entity com.yuanfeng.activity.entity.ActivityReductionPolicyGoods
 */
@Mapper
public interface ActivityReductionPolicyGoodsMapper extends BaseMapper<ActivityReductionPolicyGoodsEntity> {

    /**
     * 查看赠折活动详情
     *
     * @param param
     * @return
     */
    IPage<ReductionPolicyGoodsDetailQueryVO> queryGoodsDetailList(IPage<ReductionPolicyGoodsDetailQueryVO> page , @Param("param") Map<String, Object> param);


    /**
     * 查询商品信息
     * @param commonId
     * @return
     */
    Map<String, Object> selectManjianzengzheMessage(@Param("commonId") Integer commonId);


    /**
     * 新增
     * @param param
     */
    void insertManjianzengzheBase(@Param("param") ReductionPolicyBaseAddDTO param);

    /**
     * 查询商品信息
     * @param commonId
     * @return
     */
    GdsDetailsCommonQueryResultVO selectByCommonId(@Param("commonId") Integer commonId);
}




